package com.size.mall.mallapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.size.mall.mallapi.entity.PmsSkuInfo;

import java.math.BigDecimal;
import java.util.List;

public interface PmsSkuInfoService extends IService<PmsSkuInfo> {
    PmsSkuInfo getInfo(String spuId);

    List<PmsSkuInfo> getAllSku(String productId);

    // 根据三级分类查出所有sku
    public List<PmsSkuInfo> getAllSkuByCatalog3Id(String catalog3Id);

    PmsSkuInfo getSkuById(String skuId, String ip);

    boolean checkPrice(String productSkuId, BigDecimal price);
}
